package com.gzsxy.sso.common.dto.response;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.gzsxy.sso.common.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @author xiaolong
 * @version 1.0
 * @description: 用户返回实体
 * @date 2021/11/28 14:33
 */
@Data
@ApiModel
public class UserRsp extends BaseEntity {


    @ApiModelProperty(value = "用户名")
    private String userName;

    @ApiModelProperty(value = "真实姓名")
    private String realName;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "身份证号")
    private String idCard;

    @ApiModelProperty(value = "电话")
    private String phone;

    @ApiModelProperty(value = "头像")
    private String imagePath;

    @ApiModelProperty(value = "学校")
    private String school;

    @ApiModelProperty(value = "邮箱")
    private String email;

    @ApiModelProperty(value = "余额")
    private Integer amount;

    @ApiModelProperty(value = "是否冻结")
    private Boolean freeze;

    @ApiModelProperty(value = "排序")
    private Integer sort;


    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "最后登录时间")
    private Date lastLoginTime;

    @ApiModelProperty(value = "角色信息")
    private List<RoleRsp> roleList;
}
